//
//  UITableViewCell+customCell.m
//  jiaKaoZhuShou
//
//  Created by 金艺社 on 2018/5/25.
//  Copyright © 2018年 金艺社. All rights reserved.
//

#import "UITableViewCell+customCell.h"

@implementation UITableViewCell (customCell)
// 剪除在透明背景下的cell,即只设置可视范围的cell.layer.mask的frame
- (void)clipOutSideCellWhenUnderTransparencySectionSetMaskFrame:(CGRect)frame {
    CALayer *maskLayer = [CALayer layer];
    maskLayer.backgroundColor = [UIColor whiteColor].CGColor;
    maskLayer.frame = frame;
    self.layer.mask = maskLayer;
}
@end
